<!DOCTYPE html>
<html lang="en" xmlns:th="www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>UPDATE RESTAURANT</title>
<link rel="stylesheet" href="../../css/bootstrap/bootstrap.css"
	th:href="@{/css/bootstrap/bootstrap.css}" />
<script src="../../js/jquery-1.11.2.min.js"
	th:src="@{/js/jquery-1.11.2.min.js}"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
	th:src="@{//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js}"></script>

<style>
@font-face {
	font-family: 'Glyphicons Halflings';
	src: url('../fonts/glyphicons-halflings-regular.eot');
	src: url('../fonts/glyphicons-halflings-regular.eot?#iefix')
		format('embedded-opentype'),
		url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
		url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
		url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular')
		format('svg');
}
}
</style>
</head>
<body>
	<header></header>
	<nav class="navbar navbar-inverse">
		<div class="container-fluid">
			<div>
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#"><span class="glyphicon glyphicon-search"></span>Sign
							Up</a></li>
					<li><a href="#"><span class="glyphicon glyphicon-log-in"></span>
							Login</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<section>
		<article class="container col-sm-10 col-sm-offset-1">
			<div id="error"></div>
			<ol class="breadcrumb">
				<li><a href="#">Home</a></li>
				<li><a href="#">Restaurant</a></li>
				<li class="active">Update</li>
			</ol>
			<div class="panel panel-success">
				<div class="panel-heading">UPDATE RESTAURANT</div>
				<div class="panel-body">
					<form id="updaterestaurant" name="updaterestaurant" method="post"
						th:action="@{'/restaurant/update/' + ${res.restaurantId}}"
						onsubmit="return validateUpdateForm();"
						class="form-horizontal container col-sm-10 col-sm-offset-1">
						<div class="form-group">
							<label class="control-label col-sm-3" for="restaurantName">Restaurant
								Name:<span style="color: red">(*)</span>
							</label>
							<div class="col-sm-9">
								<input type="text" class="form-control" id="restaurantName"
									th:value="${res.restaurantName}" name="restaurantName"
									placeholder="Enter restaurant name" readonly="readonly" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-3" for="restaurantTitle">Restaurant
								Title:</label>
							<div class="col-sm-9">
								<input type="text" class="form-control" id="restaurantTitle"
									th:value="${res.restaurantTitle}" name="restaurantTitle"
									placeholder="Enter restaurant title" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-3" for="restaurantAddress">Restaurant
								Address:</label>
							<div class="col-sm-9">
								<input type="text" class="form-control" id="restaurantAddress"
									th:value="${res.restaurantAddress}"
									name="restaurantAddress" placeholder="Enter restaurant Address" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-3" for="restaurantImage">Restaurant
								Image:</label>
							<div class="col-sm-9">
								<input type="file" class="form-control" id="restaurantImage"
									th:value="${res.restaurantImage}"
									name="restaurantImage" placeholder="Enter restaurant image" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-3" for="openTime">Open/
								Close Time:<span style="color: red">(*)</span>
							</label>
							<div class="col-sm-3">
								<input type="time" class="form-control" id="openTime"
									name="openTime" th:value="${res.openTime}" />
							</div>
							<div class="col-sm-offset-1 col-sm-3">
								<input type="time" class="form-control" id="closeTime"
									name="closeTime" th:value="${res.closeTime}" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-3" for="deliveryPrice">Delivery
								Price:<span style="color: red">(*)</span>
							</label>
							<div class="col-sm-9">
								<input type="number" class="form-control" id="deliveryPrice"
									th:value="${res.deliveryPrice}"
									name="deliveryPrice" placeholder="Enter delivery price" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-3" for="minOrder">Minimum
								Bill:<span style="color: red">(*)</span>
							</label>
							<div class="col-sm-9">
								<input type="number" class="form-control" id="minOrder"
									th:value="${res.minOrder}"
									name="minOrder" placeholder="Enter minimum bill" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-3" for="paymentmethod">Payment
								Method:<span style="color: red">(*)</span>
							</label>
							<div class="col-sm-9">
								<select class="form-control" id="paymentmethod"
									name="paymentmethod">
									<option value="1">Cash</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-sm-3" for="restaurantNote">Notes:</label>
							<div class="col-sm-9">
								<textarea class="form-control" rows="3" id="restaurantNote" th:text="${res.restaurantNote}"
									name="restaurantNote" placeholder="Enter restaurant note"></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-3 col-sm-2">
								<button onclick="backPage()" class="btn btn-primary glyphicon glyphicon-backward">Back</button>
							</div>
							<div class="col-sm-offset-1 col-sm-3 pull-right">
								<a><button type="submit"
									class="btn btn-primary glyphicon glyphicon-edit">Update</button></a>
							</div>
						</div>
					</form>
				</div>
				<div class="panel-footer"></div>
			</div>
		</article>
	</section>
	<footer class="container col-sm-12">
		<ol class="breadcrumb text-center">
			<li class="active"><p>@copyright - University Of Information
					Technology - Spring + hibernate + css3 + html5</p></li>
		</ol>
	</footer>
</body>
</html>